<div class="title"><?php echo __('Категории подарков')?></div>
<?php $par = $root_folder->getChildren();?>
<table align="center"><tr><td>
	<?php foreach($par as $p):?>
	<div style="float:left; padding: 5px">
	<?php echo link_to($p,'@gift_category?id='.$p->getId())?><br>
	<?php //echo link_to(image_tag('/uploads/folder/thumbnail/'.$p->getPhotoPath()),'@gift_category?id='.$p->getId())?>
	</div>
	<?php endforeach ?>
</td></tr></table>

<div class="clear"></div>

<div align="center">
<?php echo link_to(__('Перейти в корзину'),'giftbox/output')?>
</div>
	
<div class="title"><?php echo __('Подарки') ?></div>
<?php if (!$folder->isRoot() and $folder->hasChildren()):?>
<?php $ch = $folder->getChildren(); ?>
<?php foreach($ch as $f):?>
<?php echo link_to($f,'@gift_category?id='.$f->getId())?> &nbsp;
<?php endforeach ?>
<?php endif ?>
          <?php include_component('zdLister','listMat', array(
          'mat_type'=>11,
          'tmpl_name'=>'gift_list',
          'folder_id'=>$folder->getId(),
          'per_page'=>10,
          'seo_title'=> __('Подарки'),
          'style_block'=>true,
          'sort_date' =>true
          )); ?>
<?php if($sf_user->isAuthenticated() and sfContext::getInstance()->getUser()->isSuperadmin()):?>
<?php //echo link_to(__('Добавить подарок'),'gift/category_add')?>
<?php endif ?>
<?php slot('top10_m') ?><?php end_slot() ?>
<?php slot('top10_w') ?><?php end_slot() ?>